package com.emergency.data.param;

import com.emergency.data.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@ApiModel("新增受灾点Param")
public class AffectedPointParam extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 340925534573604910L;

    @ApiModelProperty("受灾名称")
    @NotBlank(message = "受灾名称不能为空")
    private String name;

    @ApiModelProperty("受灾点地址")
    @NotBlank(message = "受灾点地址不能为空")
    private String address;

    @ApiModelProperty("经纬度区域（以josn数字形式存储经纬度数据）")
    private String mapInfo;

    @ApiModelProperty("受灾中心点经度")
    @NotBlank(message = "受灾中心点经度不能为空")
    private String mapCenterX;

    @ApiModelProperty("受灾中心点纬度")
    @NotBlank(message = "受灾中心点纬度不能为空")
    private String mapCenterY;

    @ApiModelProperty("受灾面积")
    private Double area;

    @ApiModelProperty("人口")
    private Integer peopleCount;

    @ApiModelProperty("调度范围 单位 km")
    private Integer scheduleScope;

    @ApiModelProperty("受灾人数")
    private Integer affectedCount;
}
